package com.demo.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.demo.core.exception.ParameterException;
import com.demo.domain.ScientificDirection;
import org.springframework.lang.NonNull;

import java.util.List;

public interface ScientificDirectionService extends IService<ScientificDirection> {
    public List<List<ScientificDirection>> getAllTeachersDirection() throws Exception;
    //    实现得到所有教师的科研方向，分页
    public Page getTeaDirectionByPage(int current, int size) throws ParameterException;

    //    得到几个老师的科研方向
    public List<List<ScientificDirection>> getFewTeacherDirection(int number) throws ParameterException;

    //    得到列表中老师的科研方向
    public List<List<ScientificDirection>> getSeveralTeaDirection(List<String> namelist) throws ParameterException;

//    //    将查询到的记录按教师进行分类
//    public List<List<ScientificDirection>> listByTeacher(@NonNull List<ScientificDirection> list0, int num) throws ParameterException;

    //查找教室科研信息
    public LambdaQueryWrapper<ScientificDirection> searchScientificDirection(String sdName,String sdDirectionName) throws ParameterException;

    //删除教师科研信息
    public List<ScientificDirection> deleteScientificDirection(List<Long> sdIds) throws ParameterException;
}
